package com.foreknow.elm.dao;

import com.foreknow.elm.po.User;

import java.sql.SQLException;

public interface UserDao {
    //根据用户编号与密码查询用户信息
    public User query(String userId,String password) throws SQLException;
    //根据用户编号查询用户表返回的行数
    public int queryrow(String userId) throws SQLException;
    //向用户表中添加一条记录
    public int uinsert(User user) throws Exception;
}
